-- 自己用

class("BaseUIWindow")
---@class BaseUIWindow
---@field public ablist string
--构造函数
function BaseUIWindow:ctor(baoName, zujianName)
    self.window = CS.BaseWindow();
    self.mainView = self.window:CreateWindow(baoName, zujianName);
end


--显示
function BaseUIWindow:Show()
    if CommonData.curMainUi ~= self then
        if CommonData.curMainUi ~= nil then
            CommonData.curMainUi:Hide();
        end
        self.window:Show();
        CommonData.curMainUi = self;
    end
end

--弹窗
function BaseUIWindow:ShowPop()
    self.window:ShowPop(self.window);
end

--隐藏
function BaseUIWindow:Hide()
    self.window:Hide();
end

--销毁
function BaseUIWindow:Destroy()
    self.window:Hide();
    self.window:Dispose();
end

return BaseUIWindow